using System;

namespace MPK_Calendar
{
	/// <summary>
	/// Summary description for clsApptColl.
	/// </summary>
	public class clsApptColl:System.Collections.CollectionBase
	{
		public clsApptColl()
		{
		}
		public void Add(clsAppt Appt)
		{
			List.Add(Appt);
		}
		public void Add(DateTime ApptStartIn,DateTime ApptEndIn,string strDescIn)
		{
			List.Add(new clsAppt(ApptStartIn,ApptEndIn,strDescIn));
		}
		public void Remove(int intIndex)
		{
			if(intIndex>-1 && intIndex<List.Count)
			{
				List.RemoveAt(intIndex);
			}
		}
		public clsAppt Item(int intIndex)
		{
			return (clsAppt) List[intIndex];
		}
		public int ListCount()
		{
			return List.Count;
		}
	}
}
